﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfoboardAdapterC.Common;
using InfoboardAdapterC.Connection;
using InfoboardAdapterC.Parameter;
using InfoboardAdapterC.RestOperation;
using Ninject.Modules;

namespace InfoboardAdapterC.Ioc
{
    public class Mudules : NinjectModule
    {
        public override void Load()
        {
            Bind<SqlServerDbConnection>().ToSelf().InSingletonScope();
            Bind<IniFileConfig>().ToSelf().InSingletonScope();
            Bind<DbConnectionViewModel>().ToSelf().InSingletonScope();
            Bind<SqlServerDal>().ToSelf().InSingletonScope();
            Bind<ParameterConfigViewModel>().ToSelf().InSingletonScope();
            Bind<InfoViewRestMessage>().ToSelf().InSingletonScope();
            Bind<MainRunViewModel>().ToSelf().InSingletonScope();
            Bind<ParamentConfig>().ToSelf().InSingletonScope();
            Bind<BoardInfoValueDataTable>().ToSelf().InSingletonScope();
            
        }
    }
}
